﻿using Common.View.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Device.ViewModels
{
    public class DianYuanViewModel : BindableBase
    {
        private int menuIndex = 0;
        /// <summary>
        /// 菜单索引
        /// </summary>
        public int MenuIndex
        {
            get { return menuIndex; }
            set { SetProperty(ref menuIndex, value); }
        }
        private ObservableCollection<int> channels = new ObservableCollection<int>() { 1 };
        /// <summary>
        /// 通道集合
        /// </summary>
        public ObservableCollection<int> Channels
        {
            get { return channels; }
            set { SetProperty(ref channels, value); }
        }
        private int outChannel = 1;
        /// <summary>
        /// 输出通道
        /// </summary>
        public int OutChannel
        {
            get { return outChannel; }
            set { SetProperty(ref outChannel, value); }
        }
        private string outVol;
        /// <summary>
        /// 输出电压
        /// </summary>
        public string OutVol
        {
            get { return outVol; }
            set { SetProperty(ref outVol, value); }
        }
        private string outCur;
        /// <summary>
        /// 输出电流
        /// </summary>
        public string OutCur
        {
            get { return outCur; }
            set { SetProperty(ref outCur, value); }
        }
        private int volChannel = 1;
        /// <summary>
        /// 电压采集通道
        /// </summary>
        public int VolChannel
        {
            get { return volChannel; }
            set { SetProperty(ref volChannel, value); }
        }
        private string minVol = null;
        /// <summary>
        /// 电压最小值
        /// </summary>
        public string MinVol
        {
            get { return minVol; }
            set { SetProperty(ref minVol, value); }
        }
        private string maxVol = null;
        /// <summary>
        /// 电压最大值
        /// </summary>
        public string MaxVol
        {
            get { return maxVol; }
            set { SetProperty(ref maxVol, value); }
        }
        private int curChannel = 1;
        /// <summary>
        /// 电流采集通道
        /// </summary>
        public int CurChannel
        {
            get { return curChannel; }
            set { SetProperty(ref curChannel, value); }
        }
        private string minCur = null;
        /// <summary>
        /// 最小电流
        /// </summary>
        public string MinCur
        {
            get { return minCur; }
            set { SetProperty(ref minCur, value); }
        }
        private string maxCur = null;
        /// <summary>
        /// 最大电流
        /// </summary>
        public string MaxCur
        {
            get { return maxCur; }
            set { SetProperty(ref maxCur, value); }
        }
        private int powerChannel = 1;
        /// <summary>
        /// 功率通道
        /// </summary>
        public int PowerChannel
        {
            get { return powerChannel; }
            set { SetProperty(ref powerChannel, value); }
        }
        private string minPower = null;
        /// <summary>
        /// 最小功率
        /// </summary>
        public string MinPower
        {
            get { return minPower; }
            set { SetProperty(ref minPower, value); }
        }
        private string maxPower = null;
        /// <summary>
        /// 最大功率
        /// </summary>
        public string MaxPower
        {
            get { return maxPower; }
            set { SetProperty(ref maxPower, value); }
        }
        private int closeChannel = 1;
        /// <summary>
        /// 关闭通道
        /// </summary>
        public int CloseChannel
        {
            get { return closeChannel; }
            set { SetProperty(ref closeChannel, value); }
        }
    }
}
